public class Quaternion {
    private OP op;

    public Quaternion(OP op) {
        this.op = op;
    }

    public OP getOp() {
        return op;
    }

    public void setOp(OP op) {
        this.op = op;
    }

    public String opToString() {
        return op.op;
    }

    public enum OP {
        ADD("+"),
        SUB("-"),
        MULT("*"),
        DIV("/"),
        MOD("%"),
        SLT("slt"),
        SLTIU("sltiu"),
        XOR("xor"),
        DEF("def"),
        ARRAY("arr"),
        VAL("const"),
        VAR("var"),
        ASSIGN("="),
        FUNC("func"),
        CALL("call"),
        PUSH("push"),
        PRINT("printf"),
        LABEL("label"),
        GETINT("getint()"),
        CMP("CMP"),
        RET("ret"),
        BEQ("beq"),
        BNE("bne"),
        GOTO("goto")
        ;

        private final String op;
        private OP(String op) {
            this.op = op;
        }
    }
}

